package com.android.signhelper.interfaces;

import com.android.signhelper.base.BaseView;
import com.android.signhelper.bean.Student;

import java.util.List;

/**
 * Created by ikata on 2018/11/14.
 */

public interface MainContract {
    interface View extends BaseView{
        /**
         * 显示查询到的student
         * @param list
         */
        void showData(List<Student> list);
        void showData(Student student);

        /**
         * 一键签到成功回调
         */
        void onCompleted();
    }

    interface Presenter extends SignAction{
        /**
         * 获取本地数据
         */
        void initData();

        /**
         * 通过token查找到Student数据返回UI更新
         * @param token key
         */
        void updateData(String token);

        void sign(List<Student> list);
    }
}
